package com.wnx.job.common.mapstruct;

import com.wnx.job.modules.rms.dto.CertificateParam;
import com.wnx.job.modules.rms.model.RmsCertificate;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface CertificateMapper {

    CertificateMapper INSTANCE = Mappers.getMapper(CertificateMapper.class);

    RmsCertificate toPojo(CertificateParam certificateParam);

    CertificateParam toDto(RmsCertificate tbCertificate);

    List<CertificateParam> toDtoList(List<RmsCertificate> dictList);

}
